package com.dailyblue.java.cloud.sentinel.consumer.feign.fallback;

import com.dailyblue.java.cloud.sentinel.consumer.feign.ProviderFeign;
import com.dailyblue.java.commons.util.JsonResult;
import com.dailyblue.java.commons.util.ResultTool;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ProviderFeignImpl implements ProviderFeign {
    @Override
    public JsonResult a() {
        log.info("a方法无法访问，开始进入兜底方案");
        return ResultTool.fail("a方法的兜底方案");
    }

    @Override
    public JsonResult b() {
        log.info("b方法无法访问，开始进入兜底方案");
        return ResultTool.fail("b方法的兜底方案");
    }
}
